package com.IntelligentCommunity.deploy.service.impl;

import com.IntelligentCommunity.deploy.service.IWebSocketService;
import com.IntelligentCommunity.deploy.ws.WebSocketServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 美国五星上将麦克阿瑟
 */
@Service
public class WebSocketServiceImpl implements IWebSocketService {

    @Autowired
    private WebSocketServer webSocketServer;

    @Override
    public void sendWran(String message) {
        webSocketServer.sendAllMessage(message);
    }
}
